//
//  WMH_SuggestionView.m
//  iphone.mobileoa
//
//  Created by 李林 on 13-11-7.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import "WMH_SuggestionView.h"

@interface WMH_SuggestionView ()

@end

@implementation WMH_SuggestionView

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.title = @"意见反馈";
}

-(IBAction)clickCommitBtn:(id)sender{
    [self closeKeyBoard];

    NSString *content = [NSString stringWithFormat:@"%@",self.mContentText.text];
   
    if(content==nil || [content isEqualToString:@""]){
        [self toastMessage:@"内容不能为空！"];
        return;
    }

    
}
#pragma mark 刷新UI
-(void)refreshUIWithThreadGuid:(int)taskId andData:(NSObject *)obj{
    
}

-(void)dealBackData:(NSObject *)obj{
    
    NSString *result = (NSString *)obj;
    if([result rangeOfString:@"true"].location!=NSNotFound){
        [self toastMessage:@"提交成功！"];
        [self.mContentText setText:@""];
    }else{
        [self toastMessage:@"提交失败！"];
    }
}
-(IBAction)clickBackground:(id)sender{
    [self closeKeyBoard];
}
-(void)closeKeyBoard{
    [self resignFirstResponder];

    [self.mContentText resignFirstResponder];
}

@end
